package com.example.demo.simple;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * 单生产者和单消费者
 */
@Component
public class SimpleQueueConfig {
    @Bean
    public Queue helloQueue() {
        return new Queue("hello");
    }

}
